home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / symbollib / cross.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-18  |  518 b   |  22 lines

  1. /*
  2. ### draw a cross ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6.  
  7. cross(pw,xp,yp,s,color,p_type)
  8. Pixwin *pw;
  9. int xp,yp,s,color,p_type;
  10. {
  11.  
  12.         if(p_type==0){
  13.                 pw_vector(pw,xp-s,yp,xp+s,yp,PIX_SRC | PIX_COLOR(color),1);
  14.                 pw_vector(pw,xp,yp-s,xp,yp+s,PIX_SRC | PIX_COLOR(color),1);
  15.         }
  16.         else {
  17.                 pw_vector(pw,xp-s,yp,xp+s,yp,(PIX_SRC ^ PIX_DST)| PIX_COLOR(color),1);
  18.                 pw_vector(pw,xp,yp-s,xp,yp+s,(PIX_SRC ^ PIX_DST)| PIX_COLOR(color),1);
  19.         }
  20. }
  21.  
  22.